namespace CSharpPro2;

public class Phone
{
    public string Brand;
    public ushort Weight;
    public uint Camera;
    public decimal Price;

    // 构造函数
    public Phone(string brand, ushort weight, uint camera, decimal price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }

    
    public void PrintPhoneInfo()
    {
        Console.WriteLine("手机信息：");
        Console.WriteLine($"品牌(brand): {Brand}");
        Console.WriteLine($"重量(weight): {Weight}g");
        Console.WriteLine($"后置摄像头像素(camera): {Camera:N0}");
        Console.WriteLine($"价格(price): ¥{Price:N2}");
       
        
        
    }
}